package com.sysu.ooad.dto;

import java.util.Date;

import com.sysu.ooad.entity.Homework;

public class HomeworkFacade {
	private Integer id;
	private String filename;
	private Date time;
	private int rank;
	private int grade;
	private Homework homework;
	
	public HomeworkFacade(){
		
	}
	public HomeworkFacade(Homework homework) {
		this.homework = homework;
	}
	
	public Integer getId() {
		return homework.getId();
	}
	public String getFilename() {
		return homework.getFilename();
	}
	public StudentFacade getStudent() {
		return new StudentFacade(homework.getStudent());
	}
	public TaskFacade getTask() {
		return new TaskFacade(homework.getTask());
	}
	
	public int getRank() {
		return homework.getRank();
	}
	public int getGrade() {
		return homework.getGrade();
	}
}
